package com.ls.pattern.structure.proxy.dynamic_proxy;

public class Main {
    public static void main(String[] args) {
        ProxyFactory proxyFactory = new ProxyFactory(new TeacherDao());
        ITeacherDao proxy = (ITeacherDao) proxyFactory.getInstance();
        System.out.println(proxy.getClass());
        proxy.teach();
    }
}
